<template>
  <v-container>
    <v-row>
      <h1>数据管理中心</h1>
    </v-row>
    <v-row>
      <v-col>
        <v-btn @click="refreshPopular">手动刷新时下流行</v-btn>
      </v-col>
      <v-col>
        <v-btn @click="deleteTempFile">手动清理临时文件</v-btn>
      </v-col>
      <v-col>
        <v-btn @click="syscData">立即同步缓存</v-btn>
      </v-col>
      <v-col>
        <v-btn @click="syscAds">立即同步广告数据</v-btn>
      </v-col>
    </v-row>
    <v-row> </v-row>
  </v-container>
</template>
  
  <script>
export default {
  data() {
    return {}
  },
  methods: {
    refreshPopular() {
      this.httpPost('/admin/system/refresh/hot', {}, (json) => {
        if (json.status === 200) {
          //
        }
      })
    },
    deleteTempFile() {
      this.httpPost('/admin/system/file/delete', {}, (json) => {
        if (json.status === 200) {
          //
        }
      })
    },
    syscData() {
      this.httpPost('/admin/system/data/sync', {}, (json) => {})
    },
    syscAds() {
      this.httpPost('/admin/system/ads/sync', {}, (json) => {})
    }
  },
}
</script>
  
  <style>
</style>